<template>
    <div>
        <footer>
            <!-- <a href="javascript:;" class="hover">
                <i class="iconfont icon-fangzi2"></i>
                <span>首页</span>
            </a> -->
            <router-link to="/">
                <i class="iconfont icon-fangzi2"></i>
                <span>首页</span>
            </router-link>
            <!-- <a href="javascript:;">
                <i class="iconfont icon-fenlei3"></i>
                <span>分类</span>
            </a> -->
            <router-link to="/list">
                <i class="iconfont icon-fenlei3"></i>
                <span>分类</span>
            </router-link>
            <!-- <a href="javascript:;" class="cart">
                <i class="iconfont icon-gouwuche1"></i>
                <span>购物车</span>
                <b>0</b>
            </a> -->
            <router-link to="/cart">
                <i class="iconfont icon-gouwuche1"></i>
                <span>购物车</span>
                <b>{{allInfo.allNum}}</b>
            </router-link>
            <!-- <a href="javascript:;">
                <i class="iconfont icon-icon03"></i>
                <span>个人中心</span>
            </a> -->
            <router-link to="/myspec">
                <i class="iconfont icon-icon03"></i>
                <span>个人中心</span>
            </router-link>
        </footer>
    </div>
</template>

<script>
    export default {
        computed: {
            allInfo(){
                return this.$store.getters['detail/allInfo']
            }
        },
    }
</script>

<style src="../assets/font/iconfont.css" scoped></style>
<style lang="less" scoped>
footer{
    width: 375px;
    height: 50px;
    position: fixed;
    bottom: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 14px;
    // border-top: 1px solid #999;
}
footer a{
    width: 60px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #333;
}
footer .hover{
    color: #00bf9d;
}
footer a:hover{
    color: #00bf9d;
}
footer a .iconfont{
    font-size: 26px;
}
footer .cart{
    position: relative;
}
footer  b{
    position: absolute;
    top: -1px;
    left: 64%;
    border: 1px solid #f60;
    background-color: #fff;
    color: #f60;
    width: 17px;
    height: 17px;
    text-align: center;
    line-height: 17px;
    display: block;
    border-radius: 50%;
}
</style>